/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Samuel.Macrize.swing.Tree;

import java.awt.Graphics;
import javax.swing.JComponent;
import javax.swing.plaf.basic.BasicTreeUI;

/**
 *
 * @author samuel
 */
public class CustomTreeUI extends BasicTreeUI {

    /**
     * 这两个是去除线的
     *
     * @param g
     * @param c
     * @param x
     * @param top
     * @param bottom
     */
    @Override
    protected void paintVerticalLine(Graphics g, JComponent c, int x, int top,
            int bottom) {
    }

    @Override
    protected void paintHorizontalLine(Graphics g, JComponent c, int y,
            int left, int right) {
    }

    /**
     * 这两个是改变对齐的
     * @param newAmount 
     */
    @Override
    public void setLeftChildIndent(int newAmount) {
    }

    @Override
    public void setRightChildIndent(int newAmount) {
    }
}
